<%
    /**
     * 标题头区
     * edited by amon 2005-8-16
     */
%>
<%
    logger.info("构造标题头区");
    ItemTitleArea itArea = (ItemTitleArea)request.getAttribute("viewer");
    logger.debug("  -- 取标题头区");
    List titles = itArea.getTitles(request.getContextPath());
    logger.debug("  -- 显示标题头");
    if(columns == null)
    {
        for(int i = 0; i < titles.size(); i ++)
        {
            Title title = (Title)titles.get(i);
            %>
            <td  class="shubiaogezuo" >
            <% 
            if(title.getOnClickJSFunc() != null)
            {
            %>
            <a href="#" onclick = "<%= title.getOnClickJSFunc()%>"><%= title.getText()%></a>
            <%
            }// if
            else
            {
            %>
            <%= title.getText()%>
            <%
            } //else
            %>
             </td>
            <%
        }// for
    }
    else
    {
        for(int j = 0; j < columns.length; j ++)
        {
            Title title = (Title)titles.get(Integer.parseInt(columns[j]));
            %>
            <td  class="shubiaogezuo" >
            <% 
            if(title.getOnClickJSFunc() != null)
            {
            %>
            <a href="#" onclick = "<%= title.getOnClickJSFunc()%>"><%= title.getText()%></a>
            <%
            }// if
            else
            {
            %>
            <%= title.getText()%>
            <%
            } //else
            %>
             </td>
            <%
        }
    }
    logger.info("_ItemTitleArea.jsp 完毕");
%>
